package com.donghu.openapiclientsdk;

import com.donghu.openapiclientsdk.client.OpenApiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(value = "openapi.client")
@ComponentScan
@Data
public class openApiClientConfig {
    private String accessKey;
    private String secretKey;
    @Bean
    public OpenApiClient openApiClient(){
        OpenApiClient openApiClient = new OpenApiClient(accessKey, secretKey);
        return openApiClient;
    }


}
